/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import eos.moe.dragoncore.api.model.AnimationEntityModel;
/*     */ import java.util.Objects;
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ public class ji
/*     */ {
/*     */   public final eos/moe/dragoncore/go z;
/*     */   public final float i;
/*     */   private boolean w = false;
/*     */   public bo q;
/*     */   private final gk.eos/moe/dragoncore/ih g;
/*     */   
/*     */   public ji(gk.eos/moe/dragoncore/ih eos/moe/dragoncore/ih1) {
/*  23 */     this(eos/moe/dragoncore/ih1.v(), eos/moe/dragoncore/ih1.v(), eos/moe/dragoncore/ih1.v());
/*     */   }
/*     */   
/*     */   public ji(bo bo1, float f, gk.eos/moe/dragoncore/ih eos/moe/dragoncore/ih1) {
/*  27 */     pk.v(f, 0.0F);
/*  28 */     this.z = new eos/moe/dragoncore/go(System.currentTimeMillis());
/*  29 */     this.q = bo1;
/*  30 */     this.i = f;
/*  31 */     this.g = eos/moe/dragoncore/ih1;
/*     */   }
/*     */   
/*     */   public boolean v() {
/*  35 */     return !this.w;
/*     */   }
/*     */   
/*     */   public void v(AnimationEntityModel animationEntityModel) {
/*  39 */     this.w = true;
/*     */   }
/*     */ 
/*     */   
/*     */   public ji v() {
/*  44 */     if (v().v())
/*  45 */       return this; 
/*  46 */     if (v().h()) {
/*  47 */       h();
/*  48 */       return this;
/*  49 */     }  if (this.g != null) {
/*  50 */       if (this.g.v() == null) {
/*  51 */         return null;
/*     */       }
/*  53 */       return new ji(this.g);
/*     */     } 
/*  55 */     int i = tf.w;
/*  56 */     if (i == 0) {
/*  57 */       return null;
/*     */     }
/*  59 */     return new ci(v(), z(), i, null);
/*     */   }
/*     */ 
/*     */   
/*     */   public boolean v(long l) {
/*  64 */     return (l > this.z.v() + Math.round(this.q.v() / this.i));
/*     */   }
/*     */   
/*     */   public void h() {
/*  68 */     this.z.v(System.currentTimeMillis());
/*     */   }
/*     */   
/*     */   public bo v() {
/*  72 */     return this.q;
/*     */   }
/*     */   
/*     */   public int v(long l) {
/*  76 */     return (int)((int)(l - this.z.v()) * this.i);
/*     */   }
/*     */   
/*     */   public int z() {
/*  80 */     return v(System.currentTimeMillis());
/*     */   }
/*     */   
/*     */   public void z() {
/*  84 */     this.z.z();
/*     */   }
/*     */   
/*     */   public void v() {
/*  88 */     this.z.v();
/*     */   }
/*     */   
/*     */   public int v() {
/*  92 */     return v().v();
/*     */   }
/*     */ 
/*     */   
/*     */   public String toString() {
/*  97 */     return "AnimationWatcher {animation=" + this.q + ", existingTime=" + 
/*     */       
/*  99 */       z() + ", speed=" + this.i + ", inited=" + this.w + '}';
/*     */   }
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */   
/*     */   public boolean equals(Object object) {
/* 107 */     if (this == object) return true; 
/* 108 */     if (!(object instanceof ji)) return false; 
/* 109 */     ji ji1 = (ji)object;
/* 110 */     return (Float.compare(ji1.i, this.i) == 0 && this.q
/* 111 */       .equals(ji1.q));
/*     */   }
/*     */ 
/*     */   
/*     */   public int hashCode() {
/* 116 */     return Objects.hash(new Object[] { Float.valueOf(this.i), this.q });
/*     */   }
/*     */   
/*     */   protected static class eos/moe/dragoncore/go {
/*     */     private long q;
/* 121 */     private long g = -1L;
/*     */     
/*     */     public eos/moe/dragoncore/go(long l) {
/* 124 */       this.q = l;
/*     */     }
/*     */     
/*     */     public void z() {
/* 128 */       if (this.g == -1L) {
/* 129 */         this.g = System.currentTimeMillis();
/*     */       }
/*     */     }
/*     */     
/*     */     public void v() {
/* 134 */       if (this.g != -1L) {
/* 135 */         this.q += System.currentTimeMillis() - this.g;
/* 136 */         this.g = -1L;
/*     */       } 
/*     */     }
/*     */     
/*     */     public long v() {
/* 141 */       if (this.g != -1L) {
/* 142 */         return this.q + System.currentTimeMillis() - this.g;
/*     */       }
/* 144 */       return this.q;
/*     */     }
/*     */ 
/*     */     
/*     */     public void v(long l) {
/* 149 */       this.q = l;
/*     */     }
/*     */ 
/*     */     
/*     */     public String toString() {
/* 154 */       return "FreezableTime{startTime=" + this.q + "ms, beingFrozen=" + (
/*     */         
/* 156 */         System.currentTimeMillis() - this.g) + "ms" + '}';
/*     */     }
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\ji.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */